<!doctype html>
<html>
<head>
<title>购物流程</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<!-- Apple devices fullscreen -->
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- Apple devices fullscreen -->
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link href="../css/main.css?v=12u234y" rel="stylesheet" type="text/css">
<link href="../css/page.css" rel="stylesheet" type="text/css">
<link href="../font/css/font-awesome.min.css" rel="stylesheet" />
<!--[if IE 7]>
  <link rel="stylesheet" href="../font/css/font-awesome-ie7.min.css">
<![endif]-->
<link href="../js/jquery-ui/jquery-ui.min.css" rel="stylesheet" type="text/css"/>
<link href="../js/perfect-scrollbar.min.css" rel="stylesheet" type="text/css"/>
<style type="text/css">html, body { overflow: visible;}</style>
<script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript" src="../js/jquery-ui/jquery-ui.min.js"></script>
<script type="text/javascript" src="../js/layer/layer.js"></script><!-- 弹窗js 参考文档 http://layer.layui.com/-->
<script type="text/javascript" src="../js/admin.js"></script>
<script type="text/javascript" src="../js/flexigrid.js"></script>
<script type="text/javascript" src="../js/jquery.validation.min.js"></script>
<script type="text/javascript" src="../js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="../js/jquery.mousewheel.js"></script>
<script src="../js/myFormValidate.js"></script>
<script src="../js/myAjax2.js"></script>
<script src="../js/global.js"></script>
<script type="text/javascript">
function delfunc(obj){
	layer.confirm('确认删除？', {
		  btn: ['确定','取消'] //按钮
		}, function(){
			$.ajax({
				type : 'post',
				url : $(obj).attr('data-url'),
				data : {act:'del',del_id:$(obj).attr('data-id')},
				dataType : 'json',
				success : function(data){
					if(data==1){
						layer.msg('操作成功', {icon: 1});
						$(obj).parent().parent().parent().remove();
					}else{
						layer.msg(data, {icon: 2,time: 2000});
					}
				}
			})
		}, function(index){
			layer.close(index);
			return false;// 取消
		}
	);
}

function delAll(obj,name){
	var a = [];
	$('input[name*='+name+']').each(function(i,o){
		if($(o).is(':checked')){
			a.push($(o).val());
		}
	})
	if(a.length == 0){
		layer.alert('请选择删除项', {icon: 2});
		return;
	}
	layer.confirm('确认删除？', {btn: ['确定','取消'] }, function(){
			$.ajax({
				type : 'get',
				url : $(obj).attr('data-url'),
				data : {act:'del',del_id:a},
				dataType : 'json',
				success : function(data){
					if(data == 1){
						layer.msg('操作成功', {icon: 1});
						$('input[name*='+name+']').each(function(i,o){
							if($(o).is(':checked')){
								$(o).parent().parent().remove();
							}
						})
					}else{
						layer.msg(data, {icon: 2,time: 2000});
					}
					layer.closeAll();
				}
			})
		}, function(index){
			layer.close(index);
			return false;// 取消
		}
	);	
}

//表格列表全选反选
$(document).ready(function(){
	$('.hDivBox .sign').click(function(){
	    var sign = $('#flexigrid > table>tbody>tr');
	   if($(this).parent().hasClass('trSelected')){
	       sign.each(function(){
	           $(this).removeClass('trSelected');
	       });
	       $(this).parent().removeClass('trSelected');
	   }else{
	       sign.each(function(){
	           $(this).addClass('trSelected');
	       });
	       $(this).parent().addClass('trSelected');
	   }
	})
});

//获取选中项
function getSelected(){
	var selectobj = $('.trSelected');
	var selectval = [];
    if(selectobj.length > 0){
        selectobj.each(function(){
        	selectval.push($(this).attr('data-id'));
        });
    }
    return selectval;
}
</script>
</head>
<body style="background-color: #FFF; overflow: auto;">
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>商城设置</h3>
                <h5>网站全局内容基本选项设置</h5>
            </div>
            <ul class="tab-base nc-row">
                <li><a href="index.html"><span>商城信息</span></a></li>
                <li><a href="basic.html" ><span>基本设置</span></a></li>
                <li><a href="shopping.html" class="current"><span>购物流程</span></a></li>
                <li><a href="sms.html" ><span>短信设置</span></a></li>
                <li><a href="smtp.html" ><span>邮件设置</span></a></li>
                <li><a href="water.html" ><span>水印设置</span></a></li>
                <li><a href="distribut.html"><span>分销设置</span></a></li>
                <!--<li><a href="/index.php/admin/System/index/inc_type/wap.html" ><span>WAP设置</span></a></li>-->
                <!--<li><a href="/index.php/admin/System/index/inc_type/extend.html" ><span>扩展设置</span></a></li>-->
            </ul>
        </div>
    </div>
    <!-- 操作说明 -->
    <div class="explanation" id="explanation">
        <div class="title" id="checkZoom"><i class="fa fa-lightbulb-o"></i>
            <h4 title="提示相关设置操作时应注意的要点">操作提示</h4>
            <span id="explanationZoom" title="收起提示"></span> </div>
        <ul>
            <li>网站全局基本设置，商城及其他模块相关内容在其各自栏目设置项内进行操作。</li>
        </ul>
    </div>
    <form method="post" enctype="multipart/form-data" name="form1" action="/index.php/admin/System/handle.html">
        <input type="hidden" name="form_submit" value="ok" />
        <div class="ncap-form-default">
            <dl class="row">
                <dt class="tit">
                    <label for="point_rate">积分换算比例</label>
                </dt>
                <dd class="opt">
                    <input type="radio" id="point_rate" name="point_rate" value="1"   >1元 = 1积分  &nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="radio" name="point_rate" value="10"  >1元 = 10积分  &nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="radio" name="point_rate" value="100" checked  >1元 = 100积分
                    <p class="notic">积分换算比例</p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>赠送积分比例</label>
                </dt>
                <dd class="opt">
                    <input pattern="^\d{1,}$" name="point_send_limit" value="5" class="input-txt" type="text">
                    <span class="err">%</span>
                    <p class="notic">发布商品, 赠送积分限制: 100表示不限制, 50时购买该商品赠送的积分所抵扣金额不能超过商品价格的50%</p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>最低使用限制</label>
                </dt>
                <dd class="opt">
                    <input pattern="^\d{1,}$" name="point_min_limit" value="0" class="input-txt" type="text">
                    <p class="notic">购买商品, 使用积分时: 0表示不限制, 大于0时, 用户积分小于该值将不能使用积分</p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>使用比例</label>
                </dt>
                <dd class="opt">
                    <input pattern="^\d{1,}$" name="point_use_percent" value="0" class="input-txt" type="text">
                    <span class="err">%</span>
                    <p class="notic">购买商品, 使用积分时: 100时不限制, 为0时不能使用积分, 50时积分抵扣金额不能超过该笔订单应付金额的50%</p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label for="distribut_date">发货后多少天自动收货</label>
                </dt>
                <dd class="opt">
                    <select name="auto_confirm_date" id="distribut_date">
                                                    <option value="1" selected="selected">1天</option>
                                                    <option value="2" >2天</option>
                                                    <option value="3" >3天</option>
                                                    <option value="4" >4天</option>
                                                    <option value="5" >5天</option>
                                                    <option value="6" >6天</option>
                                                    <option value="7" >7天</option>
                                                    <option value="8" >8天</option>
                                                    <option value="9" >9天</option>
                                                    <option value="10" >10天</option>
                                                    <option value="11" >11天</option>
                                                    <option value="12" >12天</option>
                                                    <option value="13" >13天</option>
                                                    <option value="14" >14天</option>
                                                    <option value="15" >15天</option>
                                                    <option value="16" >16天</option>
                                                    <option value="17" >17天</option>
                                                    <option value="18" >18天</option>
                                                    <option value="19" >19天</option>
                                                    <option value="20" >20天</option>
                                                    <option value="21" >21天</option>
                                                    <option value="22" >22天</option>
                                                    <option value="23" >23天</option>
                                                    <option value="24" >24天</option>
                                                    <option value="25" >25天</option>
                                                    <option value="26" >26天</option>
                                                    <option value="27" >27天</option>
                                                    <option value="28" >28天</option>
                                                    <option value="29" >29天</option>
                                                    <option value="30" >30天</option>
                                            </select>
                    <p class="notic">发货后多少天自动收货</p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label for="auto_transfer_date">收货多少天后,金额转入卖家平台余额</label>
                </dt>
                <dd class="opt">
                    <select  name="auto_transfer_date" id="auto_transfer_date">
                                                    <option value="1" selected="selected">1天</option>
                                                    <option value="2" >2天</option>
                                                    <option value="3" >3天</option>
                                                    <option value="4" >4天</option>
                                                    <option value="5" >5天</option>
                                                    <option value="6" >6天</option>
                                                    <option value="7" >7天</option>
                                                    <option value="8" >8天</option>
                                                    <option value="9" >9天</option>
                                                    <option value="10" >10天</option>
                                                    <option value="11" >11天</option>
                                                    <option value="12" >12天</option>
                                                    <option value="13" >13天</option>
                                                    <option value="14" >14天</option>
                                                    <option value="15" >15天</option>
                                                    <option value="16" >16天</option>
                                                    <option value="17" >17天</option>
                                                    <option value="18" >18天</option>
                                                    <option value="19" >19天</option>
                                                    <option value="20" >20天</option>
                                                    <option value="21" >21天</option>
                                                    <option value="22" >22天</option>
                                                    <option value="23" >23天</option>
                                                    <option value="24" >24天</option>
                                                    <option value="25" >25天</option>
                                                    <option value="26" >26天</option>
                                                    <option value="27" >27天</option>
                                                    <option value="28" >28天</option>
                                                    <option value="29" >29天</option>
                                                    <option value="30" >30天</option>
                                            </select>
                    <p class="notic">收货多少天后,金额转入卖家平台余额</p>
                </dd>
            </dl>
            <div class="bot">
                <input type="hidden" name="inc_type" value="shopping">
                <a href="JavaScript:void(0);" class="ncap-btn-big ncap-btn-green" onclick="document.form1.submit()">确认提交</a>
            </div>
        </div>
    </form>
</div>
<div id="goTop"> <a href="JavaScript:void(0);" id="btntop"><i class="fa fa-angle-up"></i></a><a href="JavaScript:void(0);" id="btnbottom"><i class="fa fa-angle-down"></i></a></div>
</body>
</html>